﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using NFit.Core.Interfaces;
using NFit.Core.BaseClasses;
using NFit.Core.IO;

namespace NFit.Core.Reports
{
    /// <summary>
    /// Report in console
    /// </summary>
    public class ConsoleReport : BaseReportWriter
    {
        /// <summary>
        /// Get the output stream
        /// </summary>
        /// <returns></returns>
        protected override Stream GetReportStream()
        {
            return null;
        }

        /// <summary>
        /// Write the given specification and all its childs
        /// </summary>
        /// <param name="spec"></param>
        public override void WriteSpec(SpecificationDefinition spec)
        {
            Console.WriteLine(spec.Name + " " + spec.IsSuccessful);
            WriteSpecs(spec.ChildSpecs);
        }
    }
}
